﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="apportion2.aspx.cs" Inherits="Runda.CMS.Portal.SalesManage.apportion2" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
        <script src="../Content/global.js" type="text/javascript"></script>     
  <link href="../Content/global.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Menu/Menu.css" rel="stylesheet" type="text/css" />
    <link href="../Content/Tab/tabs.css" rel="stylesheet" type="text/css" /> 
     <script type="text/javascript">
         function OnTreeNodeChecked() {
             var ele = event.srcElement;
             if (ele.type == 'checkbox') {
                 var childrenDivID = ele.id.replace('CheckBox', 'Nodes');
                 var div = document.getElementById(childrenDivID);
                 if (div == null) return;
                 var checkBoxs = div.getElementsByTagName('INPUT');
                 for (var i = 0; i < checkBoxs.length; i++) {
                     if (checkBoxs[i].type == 'checkbox')
                         checkBoxs[i].checked = ele.checked;
                 }
             }
         } 

    </script>
    <style type="text/css">
        .style1
        {
            width: 140px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table class="mnubar" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td width="9">
                    <img hspace="3" src="../Content/Menu/mnu_vSpacer.gif" />
                </td>
                <td class="icMenu" nowrap>                 
                    <span class="menu" title="关闭并刷新数据" onclick="window.opener.document.getElementById('ctl00_cphBody_btnSearchBasic').click();window.close();">
                        <img class="mnuBtn" src="../Content/Menu/Close_16_blue.gif"><span class="mnuBtn">关闭并刷新</span></span>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="border-bottom: #c2c2bf 1px solid; border-top: #969693 1px solid">关联产品分摊
    </div>
    <div id="areaForm" style="display: inline" class="tab">
        <table style="table-layout: fixed" id="Section1" cellspacing="0" cellpadding="3" width="500px"> 
                <tr style="height:500px" valign="top">
                    <td class="req" style="width:100px">
                            选择产品分类
                        </td>
                        <td style="width:400px">
                        <div style="width:400px;height:500px; overflow:scroll; border:1px solid">
                        <asp:TreeView ID="treeProductCategory" runat="server" ShowCheckBoxes="All"  
                                    ShowLines="True" PopulateNodesFromClient="False"> </asp:TreeView> 
                        </div>
                        </td>
                </tr>                                 
                <tr>
                    <td class="style1"></td>
                    <td style="width:100px">
                       <asp:Button ID="btnSave" runat="server" Text="分摊" onclick="lnkbtnSaveAndClose_Click" OnClientClick="document.getElementById('txtResult').value='数据分摊中．．．';" />
                    </td>
                    
                </tr> 
                
                <tr>
                    <td class="style1"></td>
                    <td><asp:Label ID="msg" runat="server" ForeColor="#FF3300"></asp:Label>
                        <asp:TextBox ID="txtResult" runat="server" TextMode="MultiLine" Height="80px"></asp:TextBox>
                    </td>
                </tr>                                                                                                                           
        </table>
                        
    </div>
    </form>
</body>
</html>